3.139 \(\int (a+b x+c x^2) (e+f x^4)^2 \, dx\)

Optimal. Leaf size=92 \[ a e^2 x+\frac{2}{5} a e f x^5+\frac{1}{9} a f^2 x^9+\frac{1}{2} b e^2 x^2+\frac{1}{3} b e f x^6+\frac{1}{10} b f^2 x^{10}+\frac{1}{3} c e^2 x^3+\frac{2}{7} c e f x^7+\frac{1}{11} c f^2 x^{11} \]

[Out]

a*e^2*x + (b*e^2*x^2)/2 + (c*e^2*x^3)/3 + (2*a*e*f*x^5)/5 + (b*e*f*x^6)/3 + (2*c*e*f*x^7)/7 + (a*f^2*x^9)/9 +
(b*f^2*x^10)/10 + (c*f^2*x^11)/11

________________________________________________________________________________________

Rubi [A]  time = 0.0531848, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.05, Rules used = {1657} \[ a e^2 x+\frac{2}{5} a e f x^5+\frac{1}{9} a f^2 x^9+\frac{1}{2} b e^2 x^2+\frac{1}{3} b e f x^6+\frac{1}{10} b f^2 x^{10}+\frac{1}{3} c e^2 x^3+\frac{2}{7} c e f x^7+\frac{1}{11} c f^2 x^{11} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*x + c*x^2)*(e + f*x^4)^2,x]

[Out]

a*e^2*x + (b*e^2*x^2)/2 + (c*e^2*x^3)/3 + (2*a*e*f*x^5)/5 + (b*e*f*x^6)/3 + (2*c*e*f*x^7)/7 + (a*f^2*x^9)/9 +
(b*f^2*x^10)/10 + (c*f^2*x^11)/11

Rule 1657

Int[(Pq_)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[Pq*(a + b*x + c*x^2)^p, x
], x] /; FreeQ[{a, b, c}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rubi steps

\begin{align*} \int \left (a+b x+c x^2\right ) \left (e+f x^4\right )^2 \, dx &=\int \left (a e^2+b e^2 x+c e^2 x^2+2 a e f x^4+2 b e f x^5+2 c e f x^6+a f^2 x^8+b f^2 x^9+c f^2 x^{10}\right ) \, dx\\ &=a e^2 x+\frac{1}{2} b e^2 x^2+\frac{1}{3} c e^2 x^3+\frac{2}{5} a e f x^5+\frac{1}{3} b e f x^6+\frac{2}{7} c e f x^7+\frac{1}{9} a f^2 x^9+\frac{1}{10} b f^2 x^{10}+\frac{1}{11} c f^2 x^{11}\\ \end{align*}

Mathematica [A]  time = 0.0033933, size = 92, normalized size = 1. \[ a e^2 x+\frac{2}{5} a e f x^5+\frac{1}{9} a f^2 x^9+\frac{1}{2} b e^2 x^2+\frac{1}{3} b e f x^6+\frac{1}{10} b f^2 x^{10}+\frac{1}{3} c e^2 x^3+\frac{2}{7} c e f x^7+\frac{1}{11} c f^2 x^{11} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x + c*x^2)*(e + f*x^4)^2,x]

[Out]

a*e^2*x + (b*e^2*x^2)/2 + (c*e^2*x^3)/3 + (2*a*e*f*x^5)/5 + (b*e*f*x^6)/3 + (2*c*e*f*x^7)/7 + (a*f^2*x^9)/9 +
(b*f^2*x^10)/10 + (c*f^2*x^11)/11

________________________________________________________________________________________

Maple [A]  time = 0.041, size = 77, normalized size = 0.8 \begin{align*} a{e}^{2}x+{\frac{b{e}^{2}{x}^{2}}{2}}+{\frac{c{e}^{2}{x}^{3}}{3}}+{\frac{2\,aef{x}^{5}}{5}}+{\frac{bef{x}^{6}}{3}}+{\frac{2\,cef{x}^{7}}{7}}+{\frac{a{f}^{2}{x}^{9}}{9}}+{\frac{b{f}^{2}{x}^{10}}{10}}+{\frac{c{f}^{2}{x}^{11}}{11}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^2+b*x+a)*(f*x^4+e)^2,x)

[Out]

a*e^2*x+1/2*b*e^2*x^2+1/3*c*e^2*x^3+2/5*a*e*f*x^5+1/3*b*e*f*x^6+2/7*c*e*f*x^7+1/9*a*f^2*x^9+1/10*b*f^2*x^10+1/
11*c*f^2*x^11

________________________________________________________________________________________

Maxima [A]  time = 0.981105, size = 103, normalized size = 1.12 \begin{align*} \frac{1}{11} \, c f^{2} x^{11} + \frac{1}{10} \, b f^{2} x^{10} + \frac{1}{9} \, a f^{2} x^{9} + \frac{2}{7} \, c e f x^{7} + \frac{1}{3} \, b e f x^{6} + \frac{2}{5} \, a e f x^{5} + \frac{1}{3} \, c e^{2} x^{3} + \frac{1}{2} \, b e^{2} x^{2} + a e^{2} x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x+a)*(f*x^4+e)^2,x, algorithm="maxima")

[Out]

1/11*c*f^2*x^11 + 1/10*b*f^2*x^10 + 1/9*a*f^2*x^9 + 2/7*c*e*f*x^7 + 1/3*b*e*f*x^6 + 2/5*a*e*f*x^5 + 1/3*c*e^2*
x^3 + 1/2*b*e^2*x^2 + a*e^2*x

________________________________________________________________________________________

Fricas [A]  time = 1.12252, size = 190, normalized size = 2.07 \begin{align*} \frac{1}{11} x^{11} f^{2} c + \frac{1}{10} x^{10} f^{2} b + \frac{1}{9} x^{9} f^{2} a + \frac{2}{7} x^{7} f e c + \frac{1}{3} x^{6} f e b + \frac{2}{5} x^{5} f e a + \frac{1}{3} x^{3} e^{2} c + \frac{1}{2} x^{2} e^{2} b + x e^{2} a \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x+a)*(f*x^4+e)^2,x, algorithm="fricas")

[Out]

1/11*x^11*f^2*c + 1/10*x^10*f^2*b + 1/9*x^9*f^2*a + 2/7*x^7*f*e*c + 1/3*x^6*f*e*b + 2/5*x^5*f*e*a + 1/3*x^3*e^
2*c + 1/2*x^2*e^2*b + x*e^2*a

________________________________________________________________________________________

Sympy [A]  time = 0.069704, size = 90, normalized size = 0.98 \begin{align*} a e^{2} x + \frac{2 a e f x^{5}}{5} + \frac{a f^{2} x^{9}}{9} + \frac{b e^{2} x^{2}}{2} + \frac{b e f x^{6}}{3} + \frac{b f^{2} x^{10}}{10} + \frac{c e^{2} x^{3}}{3} + \frac{2 c e f x^{7}}{7} + \frac{c f^{2} x^{11}}{11} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**2+b*x+a)*(f*x**4+e)**2,x)

[Out]

a*e**2*x + 2*a*e*f*x**5/5 + a*f**2*x**9/9 + b*e**2*x**2/2 + b*e*f*x**6/3 + b*f**2*x**10/10 + c*e**2*x**3/3 + 2
*c*e*f*x**7/7 + c*f**2*x**11/11

________________________________________________________________________________________

Giac [A]  time = 1.05879, size = 103, normalized size = 1.12 \begin{align*} \frac{1}{11} \, c f^{2} x^{11} + \frac{1}{10} \, b f^{2} x^{10} + \frac{1}{9} \, a f^{2} x^{9} + \frac{2}{7} \, c f x^{7} e + \frac{1}{3} \, b f x^{6} e + \frac{2}{5} \, a f x^{5} e + \frac{1}{3} \, c x^{3} e^{2} + \frac{1}{2} \, b x^{2} e^{2} + a x e^{2} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x+a)*(f*x^4+e)^2,x, algorithm="giac")

[Out]

1/11*c*f^2*x^11 + 1/10*b*f^2*x^10 + 1/9*a*f^2*x^9 + 2/7*c*f*x^7*e + 1/3*b*f*x^6*e + 2/5*a*f*x^5*e + 1/3*c*x^3*
e^2 + 1/2*b*x^2*e^2 + a*x*e^2